Optimal. Leaf size=155 \[ \frac {b \sqrt {d} \left (4 a c-b^2 d\right ) \tanh ^{-1}\left (\frac {b d+2 c \sqrt {\frac {d}{x}}}{2 \sqrt {c} \sqrt {d} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{8 c^{5/2}}+\frac {b \left (b d+2 c \sqrt {\frac {d}{x}}\right ) \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{4 c^2}-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {1970, 1341, 640, 612, 621, 206} \[ \frac {b \sqrt {d} \left (4 a c-b^2 d\right ) \tanh ^{-1}\left (\frac {b d+2 c \sqrt {\frac {d}{x}}}{2 \sqrt {c} \sqrt {d} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{8 c^{5/2}}+\frac {b \left (b d+2 c \sqrt {\frac {d}{x}}\right ) \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{4 c^2}-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 612
Rule 621
Rule 640
Rule 1341
Rule 1970
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x^2} \, dx &=-\frac {\operatorname {Subst}\left (\int \sqrt {a+b \sqrt {x}+\frac {c x}{d}} \, dx,x,\frac {d}{x}\right )}{d}\\ &=-\frac {2 \operatorname {Subst}\left (\int x \sqrt {a+b x+\frac {c x^2}{d}} \, dx,x,\sqrt {\frac {d}{x}}\right )}{d}\\ &=-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c}+\frac {b \operatorname {Subst}\left (\int \sqrt {a+b x+\frac {c x^2}{d}} \, dx,x,\sqrt {\frac {d}{x}}\right )}{c}\\ &=\frac {b \left (b d+2 c \sqrt {\frac {d}{x}}\right ) \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{4 c^2}-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c}+\frac {\left (b \left (4 a c-b^2 d\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x+\frac {c x^2}{d}}} \, dx,x,\sqrt {\frac {d}{x}}\right )}{8 c^2}\\ &=\frac {b \left (b d+2 c \sqrt {\frac {d}{x}}\right ) \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{4 c^2}-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c}+\frac {\left (b \left (4 a c-b^2 d\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {4 c}{d}-x^2} \, dx,x,\frac {b+\frac {2 c \sqrt {\frac {d}{x}}}{d}}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{4 c^2}\\ &=\frac {b \left (b d+2 c \sqrt {\frac {d}{x}}\right ) \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{4 c^2}-\frac {2 \left (a+b \sqrt {\frac {d}{x}}+\frac {c}{x}\right )^{3/2}}{3 c}+\frac {b \sqrt {d} \left (4 a c-b^2 d\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \left (b+\frac {2 c \sqrt {\frac {d}{x}}}{d}\right )}{2 \sqrt {c} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{8 c^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.13, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.13, size = 331, normalized size = 2.14 \[ \frac {\sqrt {\frac {a x +\sqrt {\frac {d}{x}}\, b x +c}{x}}\, \left (-3 \left (\frac {d}{x}\right )^{\frac {3}{2}} b^{3} \sqrt {c}\, x^{3} \ln \left (\frac {\sqrt {\frac {d}{x}}\, b x +2 c +2 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {c}}{\sqrt {x}}\right )+12 \sqrt {\frac {d}{x}}\, a b \,c^{\frac {3}{2}} x^{2} \ln \left (\frac {\sqrt {\frac {d}{x}}\, b x +2 c +2 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {c}}{\sqrt {x}}\right )+6 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, a \,b^{2} d \,x^{2}+6 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \left (\frac {d}{x}\right )^{\frac {3}{2}} b^{3} x^{3}-12 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, \sqrt {\frac {d}{x}}\, a b c \,x^{2}-6 \left (a x +\sqrt {\frac {d}{x}}\, b x +c \right )^{\frac {3}{2}} b^{2} d x +12 \left (a x +\sqrt {\frac {d}{x}}\, b x +c \right )^{\frac {3}{2}} \sqrt {\frac {d}{x}}\, b c x -16 \left (a x +\sqrt {\frac {d}{x}}\, b x +c \right )^{\frac {3}{2}} c^{2}\right )}{24 \sqrt {a x +\sqrt {\frac {d}{x}}\, b x +c}\, c^{3} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b \sqrt {\frac {d}{x}} + a + \frac {c}{x}}}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {a+\frac {c}{x}+b\,\sqrt {\frac {d}{x}}}}{x^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a + b \sqrt {\frac {d}{x}} + \frac {c}{x}}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________